var message:string = "Hello World" 
console.log(message)
const hello: string = "你好中国"
console.log(hello);
// 这是一个 注释




class Site {
    name():void {
        console.log("我的名字是 Site")
    }
}

// 函数定义
function function_name(param1:string, param2?:number, ...rest_of_params: any[]):string {
    // var tmp_1 = "sdfsadfad" + param2;
    console.log(typeof param2)
    if (typeof param2 == "undefined") {
        console.log("param2 未定义")
    }
    return "sdfsadfad" + param2;
}

var obj:Site = new Site();
obj.name();

var num1:number = 10;
console.log(num1);

let array1:Array<23> = [];
console.warn(array1)
console.log(`array 的长度是 ${array1.length}`)

let res:string = function_name("3333",)

console.log(res)

export { Site, function_name }
